﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>Excel只读模式下调整行高和列宽</title>
    <script>
        function OnPageOfficeCtrlInit() {
            pageofficectrl.CustomToolbar = false; //隐藏自定义工具栏
        }
    </script>

</head>
<body>
    <form id="form1">
        <div>
            设置当工作表只读时，允许用户手动调整行列。</br>
            关键代码：<div style="color:Red;">sheet1.setAllowAdjustRC(true);</div>
        </div>
        <div style=" width:100%; height:900px;">
            @Html.Raw(ViewBag.poCtrl)
        </div>
    </form>
</body>
</html>